#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const ll 10e9 + 7;
int T;
int main()
{
    ll N, K;
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    cin >> T;
    for(int i = 0; i < T; i++)
    {
        cin >> N >> K;
        
    }
    return 0;
}
//s = n * (a1 + an) * 1/2
//an = a1 + (n - 1)d